package com.example.app.entity;

import jakarta.persistence.Column;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message {
    private Long id;
    private Long fromUserId;
    private Long toUserId;
    @Column(length = 2000)
    private String content;
    private Instant sentAt = Instant.now();
    private boolean delivered;
}
